package com.liu.oa.employee.entity;

import java.util.Date;

import javax.persistence.Table;

import org.springframework.context.annotation.Scope;


/**
 *  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PHONE` varchar(255) DEFAULT NULL,
  `PASSWODE` varchar(255) DEFAULT NULL,
  `USERNAME` varchar(255) DEFAULT NULL,
  `SALARY` decimal(10,0) DEFAULT NULL,
  `BEGIN_DATE` datetime DEFAULT NULL,
  `DEPARMENT_ID` int(11) DEFAULT NULL,
 * @author My
 *
 */

@Scope("prototype")
@Table(name="oa_user_t")
public class EmployeeEntity {
	
	private Integer id;
	private String phone;
	private String passwode;
	private String username;
	private Double salary;
	private Date begind_date;
	private Integer deparment_id;
	
	
	//非数据库字段
	private String department_name;


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getPasswode() {
		return passwode;
	}


	public void setPasswode(String passwode) {
		this.passwode = passwode;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public Double getSalary() {
		return salary;
	}


	public void setSalary(Double salary) {
		this.salary = salary;
	}


	public Date getBegind_date() {
		return begind_date;
	}


	public void setBegind_date(Date begind_date) {
		this.begind_date = begind_date;
	}


	public Integer getDeparment_id() {
		return deparment_id;
	}


	public void setDeparment_id(Integer deparment_id) {
		this.deparment_id = deparment_id;
	}


	public String getDepartment_name() {
		return department_name;
	}


	public void setDepartment_name(String department_name) {
		this.department_name = department_name;
	}

	@Override
	public String toString() {
		return "EmployeeEntity [id=" + id + ", phone=" + phone + ", passwode=" + passwode + ", username=" + username
				+ ", salary=" + salary + ", begind_date=" + begind_date + ", deparment_id=" + deparment_id
				+ ", department_name=" + department_name + "]";
	}
	
	
	
	
	
}
